package com.zhou.javablog.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zhou.javablog.entity.TsContent;
import com.zhou.javablog.mapper.TsContentMapper;
import com.zhou.javablog.service.TsContentService;
/**
 * 内容
 * @author zhoudong
 *
 */
@Service
public class TsContentServiceImpl implements TsContentService{
	@Resource
	private TsContentMapper tsContentMapper;
	
	@Override
	public int deleteByPrimaryKey(String id) {
		return tsContentMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(TsContent record) {
		return tsContentMapper.insert(record);
	}

	@Override
	public int insertSelective(TsContent record) {
		return tsContentMapper.insertSelective(record);
	}

	@Override
	public TsContent selectByPrimaryKey(String id) {
		return tsContentMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(TsContent record) {
		return tsContentMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKeyWithBLOBs(TsContent record) {
		return tsContentMapper.updateByPrimaryKeyWithBLOBs(record);
	}

	@Override
	public int updateByPrimaryKey(TsContent record) {
		return tsContentMapper.updateByPrimaryKey(record);
	}
	/**
     * 查询contentVO
     * @return
     */
	@Override
	public List<Map<String, Object>> findContentsVO() {
		return tsContentMapper.findContentsVO();
	}

}
